package com.example.demo.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @author luolinila
 */
@Data
@TableName
public class User implements Serializable {
    //8位随机不重复uid
    Integer uid;
    //12位随机不重复账号
    String account;
    //密码
    String password;
    //用户名
    String username;
    //头像
    String avatar;
    //邮箱
    String email;
    //账户余额
    double balance;

    public User(Integer uid, String account, String password, String username, String email) {
        this.uid = uid;
        this.account = account;
        this.password = password;
        this.username = username;
        this.email = email;
        this.avatar = "https://ss0.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3393306820,581673443&fm=253&gp=0.jpg";
        this.balance = 10.0;
    }
}
